package com.yixin.hospital.entity.dto.req.card;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("编辑卡请求体")
public class CardEditReqDTO {

    @ApiModelProperty(value = "id", example = "1")
    @NotNull(message = "id不能为空")
    private Long id;

    @ApiModelProperty(value = "药品编码", example = "xxx")
    @NotBlank(message = "药品编码不能为空")
    private String drugCode;

    @ApiModelProperty(value = "卡名称", example = "xxx")
    @NotBlank(message = "卡名称不能为空")
    private String name;

    @ApiModelProperty(value = "卡类型", example = "1")
    @NotNull(message = "卡类型不能为空")
    private Integer type;

    @ApiModelProperty(value = "规则", example = "")
    @NotBlank(message = "规则不能为空")
    private String rule;
}
